﻿using System.Collections.Generic;
using System.Windows.Forms;
using System.Configuration;

namespace WTBP_v0._2
{
   static class Stage
   {
       static public void WriteIntoConfig(string keyName, string newValue)
       {
           Configuration appConfiguration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
           appConfiguration.AppSettings.Settings[keyName].Value = newValue;
           appConfiguration.Save(ConfigurationSaveMode.Modified);
           ConfigurationManager.RefreshSection("appSettings");
       }

       public static string CurrentStage;
       public static string Header;
       public static string Body;
       public static int NumberOfCharacters = 0;
       public static Button[] AllButtons = new Button[9];
       public static List<Character> AllCharacters = new List<Character>();
       public static Dictionary<string,int> InGameDate = new Dictionary<string, int>(5);
       public static void DateInitialize(int date,int month,int year,int hour, int minute)
       {
           InGameDate.Add("Date", date);
           InGameDate.Add("Month", month);
           InGameDate.Add("Year", year);
           InGameDate.Add("Hour", hour);
           InGameDate.Add("Minute", minute);
       }

       public static Button LastClickedButton;

   }
}
